# Filters added to this controller will be run for all controllers in the application.
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
  @lang = :ru
end

class Array
  def to_ru    
    self.collect! do |elem|
      if elem.instance_of? String
        translate(elem,:rus)      
      elsif elem.instance_of? Array
        elem.to_ru
      end
    end
  end
end

